{"ast":null,"code":"import * as React from 'react';\nexport default function PresetPanel(props) {\n  var prefixCls = props.prefixCls,\n    presets = props.presets,\n    _onClick = props.onClick,\n    onHover = props.onHover;\n  if (!presets.length) {\n    return null;\n  }\n  return /*#__PURE__*/React.createElement(\"div\", {\n    className: \"\".concat(prefixCls, \"-presets\")\n  }, /*#__PURE__*/React.createElement(\"ul\", null, presets.map(function (_ref, index) {\n    var label = _ref.label,\n      value = _ref.value;\n    return /*#__PURE__*/React.createElement(\"li\", {\n      key: index,\n      onClick: function onClick() {\n        _onClick(value);\n      },\n      onMouseEnter: function onMouseEnter() {\n        onHover === null || onHover === void 0 ? void 0 : onHover(value);\n      },\n      onMouseLeave: function onMouseLeave() {\n        onHover === null || onHover === void 0 ? void 0 : onHover(null);\n      }\n    }, label);\n  })));\n}","map":{"version":3,"names":["React","PresetPanel","props","prefixCls","presets","_onClick","onClick","onHover","length","createElement","className","concat","map","_ref","index","label","value","key","onMouseEnter","onMouseLeave"],"sources":["/data/messenger.client/node_modules/rc-picker/es/PresetPanel.js"],"sourcesContent":["import * as React from 'react';\nexport default function PresetPanel(props) {\n  var prefixCls = props.prefixCls,\n      presets = props.presets,\n      _onClick = props.onClick,\n      onHover = props.onHover;\n\n  if (!presets.length) {\n    return null;\n  }\n\n  return /*#__PURE__*/React.createElement(\"div\", {\n    className: \"\".concat(prefixCls, \"-presets\")\n  }, /*#__PURE__*/React.createElement(\"ul\", null, presets.map(function (_ref, index) {\n    var label = _ref.label,\n        value = _ref.value;\n    return /*#__PURE__*/React.createElement(\"li\", {\n      key: index,\n      onClick: function onClick() {\n        _onClick(value);\n      },\n      onMouseEnter: function onMouseEnter() {\n        onHover === null || onHover === void 0 ? void 0 : onHover(value);\n      },\n      onMouseLeave: function onMouseLeave() {\n        onHover === null || onHover === void 0 ? void 0 : onHover(null);\n      }\n    }, label);\n  })));\n}"],"mappings":"AAAA,OAAO,KAAKA,KAAK,MAAM,OAAO;AAC9B,eAAe,SAASC,WAAW,CAACC,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